﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.QLMS.Entity.QuestionLibrary
{
    [ActiveRecord]
    public class TestPaperMinPart : EntityBase<TestPaperMinPart>
    {
        [Property]
        public DefficultDegree DefficultDegree { get; set; }

        [Property]
        public double score { get; set; }

        [HasAndBelongsToMany(typeof(Question), Table = "Question_TestPaperMinPart", ColumnRef = "QuestionID", ColumnKey = "TestPaperMinPartID")]
        public IList<Question> Questions { get; set; }

        [BelongsTo("TestPaperPartID")]
        public TestPaperPart TestPaperPart { get; set; }
    }
}
